package zezutom.designpatterns.cor;

/**
 * RequestHandler is in charge of accepting / rejecting loan requests.
 * 
 * @author tomasz
 */
public interface RequestHandler {

    String getName();
    
    void setName(String name);
   
    /**
     * Evaluates a loan request.
     * 
     * @param request   the evaluated loan request
     * 
     * @return true if the loan request is accepted, false otherwise 
     */
    boolean handleRequest(LoanRequest request);
    
}
